#include "AppRemoteTrader.mqh"


AppRemoteTrader::AppRemoteTrader()
{
}

AppRemoteTrader::~AppRemoteTrader()
{
}

AppRemoteTrader::OnInit()
{
    SimpleTrader trader;
    trader.Init(_Symbol, MA_MAGIC, 0.1);
    _remoteTrader.Init(_Symbol, PERIOD_M5, trader);
}

AppRemoteTrader::OnTick(void)
{
   _remoteTrader.Process();
}

AppRemoteTrader::OnDeinit(void)
{
   _remoteTrader.Close();
}